package crivia.ecp.carry.em;

import crivia.ecp.carry.html.table.TDCell;
import crivia.ecp.carry.html.table.TableRow;

public class EditerTitle extends TDCell {
	
	public static String Width = "100px";

	public EditerTitle(TableRow row) {
		super(row);
	}

	public EditerTitle(TableRow row , boolean allWidth) {
		super(row);
		this.allWidth = allWidth;
	}
	
	@Override
	public String toString() {
		if (isAllWidth()){
			addStyle("width", Width);
		}
		return super.toString();
	}
	
	private boolean allWidth = true;
	public boolean isAllWidth() {
		return allWidth;
	}
	public EditerTitle setAllWidth(boolean allWidth) {
		this.allWidth = allWidth;
		return this;
	}

}
